package org.patterns.behavior.state.switchstate;


//关闭状态类
public class OffState extends SwitchState {
    public void on(Switch sw) {
        System.out.println("打开！");
        sw.setState(Switch.getState("on"));
    }

    public void off(Switch sw) {
        System.out.println("已经关闭！");
    }
}